package com.shopping_center.management.mapper;

import com.shopping_center.management.system.model.UserInfo;
import com.shopping_center.management.system.model.UserMenu;

import java.util.List;

/**
 * @author YeFeng
 * @date 2023/3/2
 */
public interface SystemMapper {

    /**
     * 通过用户ID查询用户拥有的菜单
     *
     * @return {@link List}<{@link UserMenu}>
     */
    List<UserMenu> selectUserMenuByUserId(String userId);

    UserInfo login(UserInfo userInfo);

    String selectUserIdByUserName(String username);
}
